package com.itheima.output;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo1 {
    public static void main(String[] args) throws IOException {
        // 1.创建字节输出流对象
//        FileOutputStream fos = new FileOutputStream("D:\\a.txt");
        FileOutputStream fos = new FileOutputStream(new File("D:\\a.txt"));
        // 2.写数据
        fos.write(97);
        // 3.释放资源
        fos.close();
    }
}
